package com.sunhao.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageButton;
import android.widget.ImageView;

public class MainActivity10 extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main10);

        ImageView imageView = findViewById(R.id.kaiting);
        imageView.setImageResource(R.drawable.kaiting);
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);

        ImageButton imageButton=findViewById(R.id.dance);
        imageButton.setImageResource(R.drawable.dance);
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
    }
}